@media screen and (min-width: 361px) and (max-width: 413px) {
    .header {
        display: flex;
        justify-content: space-between;
        /* Space between logo and menu */
        align-items: center;
        padding: 10px 20px;
        position: relative;
    }

    .header a {
        text-decoration: none;
        transition: all 0.5s ease;
        display: inline-block;
    }

    .header #logo {
        width: 100px;
        transition: filter 0.3s ease;
    }

    .header #logo:hover {
        filter: brightness(0.7);
        cursor: crosshair;
    }

    .header #logo img {
        width: 100%;
        height: 75px;
    }

    #menu {
        display: none;
        /* Adjust width if necessary */
    }

    #mobile-menu {
        display: block;
    }

    /* Sidebar */
    #sidebar {
        position: fixed;
        right: -250px;
        top: 0;
        width: 250px;
        height: 100%;
        background-color: var(--text-color);
        display: flex;
        flex-direction: column;
        padding-top: 20px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    #sidebar a {
        color: white;
        padding: 10px;
        text-decoration: none;
        display: block;
    }

    #sidebar a:hover {
        background-color: #444;
        cursor: crosshair;
    }

    /* Sidebar Buttons */
    #menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }

    #menu-toggle img {
        height: 28px;
        width: 28px;
    }

    #close-sidebar {
        font-size: 24px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        text-align: right;
        padding-right: 15px;
    }

    /* Dropdown in Sidebar */
    .sidebar-dropdown {
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .sidebar-dropdown a {
        transition: 0.3s;
    }

    .sidebar-dropbtn {
        background: none;
        border: none;
        color: white;
        text-align: left;
        padding: 10px;
        cursor: pointer;
        font-size: 19px;
        transition: all 0.3s ease;
    }

    .sidebar-dropdown-content {
        display: none;
        flex-direction: column;
        padding-left: 10px;
    }

    .sidebar-dropdown-content a {
        font-size: 19px;
    }

    .sidebar-dropdown-content hr {
        border: 0.5px solid #555;
        margin: 5px 0;
    }

    .sidebar-dropdown.active .sidebar-dropdown-content {
        display: flex;
    }

    /*Main Body*/
    .mains {
        display: flex;
    }

    #section-one {
        height: calc(100vh - 100px);
        width: 100%;
        text-align: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        /* Hide images outside of container */
    }

    #section-two {
        width: 100%;
        text-align: center;
        justify-content: center;
        position: relative;
        margin-bottom: 50px;
        overflow: visible;
        margin-top: 30px;
        padding-bottom: 40px;
    }

    #section-three {
        margin-top: 67px;
    }

    #section-five {
        margin-top: 30px;
        width: 100%;
        text-align: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    #center-images {
        display: flex;
        transition: transform 1s ease-in-out;
        /* Smooth transition */
        width: 300%;
        /* Adjusted for 3 images */
    }

    /*Section One*/
    #center-images {
        position: relative;
        width: 100%;
        height: calc(100vh - 100px);
        overflow: hidden;
    }

    .slide {
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: left 0.8s ease-in-out, opacity 0.8s ease-in-out;
        background-size: cover;
        background-position: center;
    }

    .slide.active {
        left: 0;
        opacity: 1;
    }

    .slideshow-buttons {
        display: none;
    }

    /* Dark overlay on the image */
    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        /* Darker overlay */
        z-index: 1;
        /* Ensure the overlay is above the image */
    }

    /* Navigation Buttons */
    .slideshow-buttons {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        transform: translateY(-50%);
        z-index: 10;
    }

    .slideshow-buttons button {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 18px;
        transition: background 0.3s ease;
    }

    .slideshow-buttons button:hover {
        background-color: rgba(0, 0, 0, 0.8);
        cursor: crosshair;
    }

    

    .caption {
        position: absolute;
        color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* Stack the title and link */
        width: 100%;
        height: 100%;
        /* Take up full height of the slide */
        top: 0;
        left: 0;
        z-index: 2;
        /* Make sure the caption appears above the overlay */
    }

    .caption h2 {
        margin: 0;
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        color: var(--text-color);
        /* Optional text shadow for readability */
    }

    .caption .paragraph-caption {
        margin: 10px;
        font-size: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        /* Optional text shadow for readability */
    }

    .caption a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        background-color: var(--text-color);
        /* Slightly darker background for the link */
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
        /* Space between the caption and link */
        text-transform: uppercase;
        transition: all 0.3s ease;
    }

    .caption a:hover {
        background-color: white;
        color: var(--text-color);
        cursor: crosshair;
    }

    /*Section Two*/
    .image-container {
        width: 80%;
        /* Full width */
        display: flex;
        justify-content: center;
        /* Center the image horizontally */
        margin-bottom: 30px;
        /* Add space below the image container */
        border-radius: 12px;
    }

    .image-container img {
        width: 100%;
        /* Make the image take up 100% width of its container */
        max-width: 100%;
        /* Ensure the image doesn't overflow */
        height: auto;
        /* Maintain aspect ratio */
        border-radius: 12px;
    }

    .text-container {
        width: 80%;
        /* Adjust width of the text container */
        text-align: justify;
        /* Justify the text for a book-like appearance */
        line-height: 1.4;
        /* Improve readability by adding line spacing */

    }

    .text-container h2 {
        font-size: 2rem;
        /* Optional: Set the size of the heading */
        margin-bottom: 10px;
        /* Space between the heading and text */
    }

    .text-container p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        /* Add space between paragraphs */
    }

    /*Section Three*/
    .rectangle {
        width: 100%;
        max-width: 1200px;
        padding: 20px;
        border-radius: 10px;
        border: 2px solid #ccc;
        background-color: #f9f9f9;
    }

    .icons-container {
        display: flex;
        justify-content: space-around;
        margin-bottom: 30px;
    }

    .icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .icon img {
        width: 50px;
        height: 50px;
    }

    .icon span {
        font-size: 1rem;
        color: #333;
    }

    .images-container {
        display: flex;
        flex-direction: column;
        /* Stack images vertically */
        justify-content: space-between;
        width: 100%;
        /* Ensure the container takes full width */
    }

    .image-item {
        width: 100%;
        /* Make each image take 100% of the container width */
        position: relative;
        margin-bottom: 10px;
        /* Add space between the images */
    }

    .image-text {
        position: absolute;
        top: 50%;
        left: 10%;
        transform: translateY(-50%);
        color: #fff;
        font-size: 1.3rem;
        text-align: left;
        width: 80%;
        z-index: 2;
    }

    .image-text h3,
    .image-text p {
        text-align: left;
    }

    .image-text p {
        display: none;
    }

    .image-text a {
        display: block;
        text-align: center;
        margin-top: 10px;
        text-decoration: none;
        color: white;
        font-size: 1rem;
        background-color: var(--text-color);
        border-radius: 5px;
        text-transform: uppercase;
        transition: all 0.3s ease;
        width: 50%;
        padding: 10px;
    }

    .image-text a:hover {
        color: var(--text-color);
        background-color: #fff;
        cursor: crosshair;
    }

    #bright-image {
        height: 450px;
        background-image: url('../../images/graduates.jpeg');
        background-size: cover;
        background-position: center;
    }

    #dark-image {
        height: 450px;
        background-image: url('../../images/candidate-wallpaper-dark.webp');
        background-size: cover;
        background-position: center;
        filter: brightness(0.3);
        border-bottom-right-radius: 9px;
        border-bottom-left-radius: 9px;
    }

    .twopictures-aligned {
        width: 100%;
        max-width: 1200px;
        border-radius: 10px;
        border: 2px solid #ccc;
        background-color: #f9f9f9;
        display: flex;
        flex-direction: column;
        /* Stack the images vertically */
        justify-content: center;
        gap: 0;
        /* Add space between the two images */
    }

    #bright-image-contact-us {
        height: 350px;
        background-image: url('../../images/contact-us-bright-index.png');
        background-size: cover;
        background-position: center;
        border-bottom-left-radius: 8px;
        /* Adjusted the radius for top-left */
        border-bottom-right-radius: 8px;
        /* Adjusted the radius for bottom-left */
    }

    #dark-image-contact-us {
        height: 350px;
        background-image: url('../../images/contact-us-dark-index.jpeg');
        background-size: cover;
        background-position: center;
        filter: brightness(0.3);
        border-top-right-radius: 8px;
        /* Adjusted the radius for top-right */
        border-top-left-radius: 8px;
        /* Adjusted the radius for bottom-right */
    }

    /*Section Five*/
    .row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        width: 98%;
    }

    .card {
        background-color: #f5f5f5;
        border-radius: 10px;
        padding: 20px;
        box-sizing: border-box;
        text-align: right;
    }

    .full-width-card {
        display: flex;
        justify-content: center;
        /* Space between logo and icons */
        width: 80%;
        /* Takes full width */
        align-items: center;
        /* Align items vertically */
    }

    .logo-container {
        display: none;
    }

    .logo-img {
        width: 100%;
        max-width: 200px;
        /* Adjust max width as needed */
        transition: filter 0.3s ease;
    }

    .logo-img:hover {
        filter: brightness(0.7);
        cursor: crosshair;
    }

    .icons-right {
        display: flex;
        justify-content: flex-end;
        /* Align icons to the right */
        gap: 0;
        /* Remove any gap between icons */
    }

    .icon-img {
        width: 50px;
        /* Adjust icon size */
        height: auto;
        margin-left: 5px;
        margin-right: 5px;
        /* Small space between icons */
        transition: filter 0.3s ease;
    }

    .icon-img:hover {
        filter: brightness(0.7);
        cursor: crosshair;
    }

    .icon-img:first-child {
        margin-left: 0;
        /* Remove margin from the first icon */
    }

    .second-row {
        display: flex;
        flex-direction: column;
        /* Stack the cards vertically */
        gap: 20px;
        align-items: center;
        /* Add space between the cards */
    }

    .second-row .card {
        width: 90%;
        /* Make each card take the full width */
        text-align: left;
    }

    .second-row .card h3 {
        margin-top: 0;
        color: var(--text-color);
    }

    .second-row .card p {
        margin-bottom: 0;
    }

    .second-row .card a {
        display: block;
        margin-top: 10px;
        text-align: left;
        text-decoration: none;
    }

    .second-row .card a:hover {
        text-decoration: underline;
        cursor: crosshair;
    }

    .card p {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .card p img {
        flex-shrink: 0;
        height: 28px;
        width: 28px;
    }

    .card-links {
        color: black;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    #footer {
        background-color: #eeeeee;
        color: var(--text-color);
        text-align: center;
        padding: 10px;
        width: 100%;
        /* Use relative positioning for normal flow */
        bottom: 0;
    }
}